#!/bin/bash

read -p "please input your name:" u_name
read -p "please input your sex:" u_sex
if [[ "$u_sex" == "男" ]]
then
	meinv=(杨幂 赵丽颖 范冰冰 娜扎)
	for i in ${!meinv[@]}
	do
		echo "${i}.${meinv[${i}]}"
	done
	read -p "please input your chioce:" u_num1
	type1=(可爱 聪明 漂亮 皮肤白)
	for i in ${!type1[@]}
	do
		echo "${i}.${type1[${i}]}"
	done
	read -p "please input your reason:" u_num11 u_num12
	echo "$u_name $u_sex 喜欢:${meinv[${u_num1}]} 理由:${type1[$u_num11]} ${type1[$u_num12]}" 
elif [[ "$u_sex" == "女" ]]
then
	shuaige=(杨洋 井柏然 彭于晏 汪涵)
	for i in ${!shuaige[@]}
	do
		echo "${i}.${shuaige[${i}]}"
	done
	read -p "please input your chioce:" u_num2
	type2=(帅哥 多金 幽默 有才)
	for i in ${!type2[@]}
	do
		echo "${i}.${type2[${i}]}"
	done
	read -p "please input your reason:" u_num21 u_num22
	echo "$u_name $u_sex 喜欢:${shuaige[${u_num2}]} 理由:${typie2[$u_num21]} ${type2[$u_num22]}" 
fi
